package cn.springspace.kotlinapp.serializer

import com.fasterxml.jackson.databind.JsonDeserializer
import java.time.ZonedDateTime

class ZonedDateTimeDeserializer : JsonDeserializer<ZonedDateTime>() {

    override fun deserialize(jsonParser: com.fasterxml.jackson.core.JsonParser, ctxt: com.fasterxml.jackson.databind.DeserializationContext): ZonedDateTime {
        return ZonedDateTime.parse(jsonParser.text)
    }
}